'''
此案例演示复合数据类型数组
'''
import numpy as np
data =[
    ('张三',[99,98,88],15),
    ('李四',[95,94,83],14),
    ('王五',[89,88,98],16),
]
ary = np.array(data,dtype = '2str,3int32,int32')#声明的复合数据个数和类型要一一对应
print(ary,type(ary))